﻿using Microsoft.Xna.Framework;

namespace block_explorer
{
    class BlockBuilder : IMapBuilder
    {
        public Block GetBlock(Vector3 worldPosition)
        {
            if (worldPosition.Y <= 0.0f)
                return new Block(Block.ContentType.DIRT);
            return new Block(Block.ContentType.AIR);
        }

        public int GetHeightAt(Vector2 worldPosition)
        {
            return 0;
        }
    }
}
